package cn.hyp.bantang.module.infra.api.db;

import cn.hyp.bantang.module.infra.service.db.DatabaseTableService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import com.baomidou.mybatisplus.generator.config.po.TableInfo;

import javax.annotation.Resource;

/**
 * Db API 实现类
 *
 * @author 芋道源码
 */
@Service
@Validated
public class DbApiImpl implements DbApi {
    @Resource
    DatabaseTableService databaseTableService;
    @Override
    public TableInfo getTable(Long dataSourceConfigId, String tableName) {

        return databaseTableService.getTable(dataSourceConfigId, tableName);
    }
}
